package com.contacts.taopiaopiao;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.widget.Toast;

import com.contacts.paystander.PayInterfaceBroadcast;

/**
 * Created by zuo on 2018/4/22.
 */
public class MyReceiver extends BroadcastReceiver implements PayInterfaceBroadcast{
    @Override
    public void attach(Context context) {
        Toast.makeText(context,"-----绑定上下文成功-----",Toast.LENGTH_SHORT).show();
    }

    @Override
    public void onReceive(Context context, Intent intent) {
        Toast.makeText(context,"------收到广播-----",Toast.LENGTH_SHORT).show();
    }
}
